:root {
    --bg-color: var(--vscode-editor-background);
    --text-color: var(--vscode-editor-foreground);
    --button-bg: var(--vscode-button-background);
    --button-fg: var(--vscode-button-foreground);
    --button-hover-bg: var(--vscode-button-hoverBackground);
    --card-bg: var(--vscode-dropdown-background);
    --border-color: var(--vscode-input-border);
    --error-color: var(--vscode-errorForeground);
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --info-color: #2196F3;
}

body, html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Segoe WPC', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    width: 100%;
    height: 100%;
}

.container {
    padding: 10px;
    max-width: 100%;
}

h1, h2 {
    font-weight: 600;
    margin-bottom: 16px;
}

h1 {
    font-size: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

h2 {
    font-size: 16px;
    margin-top: 24px;
}

.actions {
    display: flex;
    margin-bottom: 20px;
    gap: 8px;
}

.button {
    background-color: var(--button-bg);
    color: var(--button-fg);
    border: none;
    padding: 6px 14px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: var(--button-hover-bg);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button.small {
    padding: 3px 8px;
    font-size: 12px;
}

.servers-container, .tools-container {
    margin-bottom: 20px;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.server-card:hover {
    border-color: var(--button-bg);
}

.server-card.selected {
    border-color: var(--button-bg);
    box-shadow: 0 0 0 1px var(--button-bg);
}

.server-card.disabled {
    opacity: 0.7;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.server-name {
    font-weight: 600;
}

.server-status {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.1);
}

.server-status.connected {
    color: var(--success-color);
}

.server-status.connecting {
    color: var(--warning-color);
}

.server-status.disconnected {
    color: var(--error-color);
}

.server-actions {
    display: flex;
    gap: 5px;
}

.server-actions button {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.server-actions button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.server-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.server-toggle.enable {
    color: var(--success-color);
}

.server-toggle.disable {
    color: var(--warning-color);
}

.server-delete {
    color: var(--error-color) !important;
}

.server-error {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 8px;
    padding: 5px;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 2px;
}

.tools-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.tools-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.tool-item:hover {
    border-color: var(--button-bg);
}

.tool-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.tool-description {
    font-size: 12px;
    opacity: 0.8;
}

.tool-auto-approve {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.1);
}

.tool-auto-approve.enabled {
    color: var(--success-color);
}

.tool-auto-approve.disabled {
    color: var(--warning-color);
}

.loading, .empty-message {
    padding: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.error-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 90%;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
} 